package cn.lanqiao.demo.service.impl;

import cn.lanqiao.demo.dao.NotifyDao;
import cn.lanqiao.demo.entity.Notify;
import cn.lanqiao.demo.service.NotifyService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class NotifyServiceImpl implements NotifyService {

    @Resource
    private NotifyDao notifyDao ;

    @Override
    public List<Notify> getAll() {
        return notifyDao.getAll();
    }

    @Override
    public int update(Notify notify) {
        return notifyDao.update(notify);
    }

    @Override
    public int add(Notify notify) {
        return notifyDao.add(notify);
    }

    @Override
    public Notify getById(int Nno) {
        return notifyDao.getById(Nno);
    }

    @Override
    public int deleteById(int Nno) {
        return notifyDao.deleteById(Nno);
    }
}
